package com.m4f.gaeweb.business.service.ifc;

import java.util.Collection;
import java.util.List;

public interface IGenericDAOBaseService<T> {
	
	public T create();
	
	public void save(T t) throws Exception;
	
	public void delete(T t) throws Exception;
	
	public List<T> getAll() throws Exception;
	
	public long count();
	
	public T getObjectById(Long id) throws Exception;
	
	public Collection<T> getObjectsBy(String ordering, String filterBy, String filterValue, int init, int end);
	
	Collection<T> getObjectsByIds(List<Long> objectIds, String ordering, String filterBy, String filterValue, int init, int end) throws Exception;
}
